package com.drpclub.gamebackend.common.constant;

/**
 * @author dongruipeng
 * @Descrpition
 * @date 2019year 12month14day  16:07:29
 */
public class Const {
    //config
    public static final String DOMAIN = "http://www.dongrp.club";
    public static final String LOCALHOST = "http://localhost:8081";
    public static String ACCESSPATH ="/file/";
    //Time
    public static final long EXPIRATION_TIME = 640_800_000_000L; //7 day ( count by millisecond )
    //Token
    public static final String TOKEN = "FK5cfp69ff";
    //default Image
    public static final String DEFAULT_IMAGE = "default.jpg";
    //transaction
    public static final String TRANSACTION_MANAGER = "transactionManager";
    //auth
    public static final int PASS_TOKEN = -1;
    public static final int PASS_ACCESS = 0;
    public static final int FORBIDDEN = 1;
    //log
    public static final String INVALID_LOGIN = "invalid login ";
    public static final String INVALID_TOKEN = "invalid token ";
    public static final String INVALID_COOKIE_ACCESS = "cookie 未携带token";
    public static final String NOTNULL = "not null";
    //img
    private static final String BASE_IMAGE_PATH = "/incoming/static/image";
    public static final String HEAD_IMAGE_PATH = BASE_IMAGE_PATH + "/headImage";
    public static final String COVER_IMAGE_PATH = BASE_IMAGE_PATH + "/coverImage";
    public static final String CONTENT_IMAGE_PATH = BASE_IMAGE_PATH + "/contentImage";
    //essay
    private static final String BASE_ESSAY_PATH = "/incoming/static/essay";
    public static final String CONTENT_ESSAY_PATH = BASE_ESSAY_PATH + "/content";
    //userService
    public static final String INVALID_USER = "用户不合法";
    public static final String INVALID_USERNAME = "用户名不合法";
    public static final String USERNAME_ALREADY_EXIST = "用户名已存在";
    public static final String WRONG_PASSWORD = "密码输入错误";
    public static final String CHANGE_PASSWORD_SUCCESSFUL = "密码修改成功";
}
